//
//  UILabel+category.m
//  NeedYouPower
//
//  Created by XD-XY on 6/27/14.
//  Copyright (c) 2014 XD-XY. All rights reserved.
//

#import "UILabel+category.h"

@implementation UILabel (category)

+(id)initLabelRect:(CGRect)rect andBackGroudColor:(UIColor *)bColor andTextFont:(UIFont *)font andTextColor:(UIColor *)tcolor andTextAlignment:(NSTextAlignment)alignment
{
    UILabel * label = [[UILabel alloc] initWithFrame:rect];
    label.backgroundColor = bColor;
    label.font = font;
    label.textColor = tcolor;
    label.textAlignment = alignment;
    return label;
}

@end
